<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>北网考试批卷</title>
		{% load static %}
		<link rel="stylesheet" type="text/css" href="{% static 'user/bootstrap-3.3.7-dist/css/bootstrap.min.css' %}" />
		<style type="text/css">
			.shuruk{
				margin: 0 auto;
			}
		</style>
	</head>

	<body>
		<div class="container">
		<form action = '{% url "user:huodeti" user_id subject %}' method = 'post'>
		{% csrf_token %}
		<h1>请为这个试卷命名</h1>
		<input type="text" name="paper_name" />
		<ul class="nav nav-tabs" role="tablist">
		{% for question_type in question_type_set %}
		<input type="text" name="xx" value = '{{question_type.question_type_text}}' style="display:none;">
			{% if forloop.counter == 1%}
			<li class="nav-item active">
			{% else %}
			<li class="nav-item">
			{% endif %}
				<a class="nav-link" data-toggle="tab" href="#question{{forloop.counter}}">{{question_type}}</a>
			</li>
		{% endfor %}
		</ul>
		<div class="tab-content shuruk">
			{% for question_num in question_list %}
			{% if forloop.counter == 1 %}
			<div class="tab-pane active" id="question{{forloop.counter}}">
			{% else %}
			<div class="tab-pane" id="question{{forloop.counter}}">
			{% endif %}
				<p>题目总量为{{question_num}}</p>
				<ul>
					请输入数量<li><input type="text" name="数量" value = ''></li>
					请输入分数<li><input type="text" name="分数" value = ''></li>
				</ul>
			</div>
			{% endfor %}
		</div>
		<input type="submit" name="Vote" value="确认提交" />
		</form>
		</div>
						










		<script type="text/javascript" src="{% static 'user/jquery-3.3.1.min.js' %}">
		</script>
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js">
		</script>
		<script src="{% static 'user/bootstrap-3.3.7-dist/js/bootstrap.min.js' %}" type="text/javascript">
		</script>
	</body>

</html>